package com.domino.client.mvc.impl;

import java.util.List;

import com.domino.shared.Player;
import com.domino.shared.SessionStateResponse;
import com.domino.shared.model.Brick;
import com.domino.shared.model.Color;
import com.domino.shared.session.SessionId;

public class SessionState extends SessionStateResponse {

	private Player opponent;
	private List<Brick> moves;
	private SessionId sessionId;
	private Color color;
	private Color givingUpColor;
	private Player player;
	private String debugMessage;
	
	
	public SessionState(int state, Player player, Player opponent, List<Brick> moves,
			SessionId sessionId, Color color, Color givingUpColor, String debugMessage) {
		super(state);
		this.player = player;
		this.opponent = opponent;
		this.moves = moves;
		this.sessionId = sessionId;
		this.color = color;
		this.givingUpColor = givingUpColor;
		this.debugMessage = debugMessage;
	}
	
	public Player getPlayer() {
		return player;
	}

	public Player getOpponent() {
		return opponent;
	}

	public List<Brick> getMoves() {
		return moves;
	}
	
	public SessionId getSessionId() {
		return sessionId;
	}

	public Color getColor() {
		return color;
	}

	public Color getGivingUpColor() {
		return givingUpColor;
	}

	public String getDebugMessage() {
		return debugMessage;
	}
	
}
